<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
    <head>
        <style>
            .error {
                color: #ff0000;
            }

            .errorblock {
                color: #000;
                background-color: #ffEEEE;
                border: 3px solid #ff0000;
                padding: 8px;
                margin: 16px;
            }
        </style>
    </head>

    <body>
        <h1>BKLIB LOGIN</h1>

        <form:form method="POST" commandName="customerForm">
            <form:errors path="*" cssClass="errorblock" element="div" />
            <table>
                <tr>
                    <td>Username :</td>
                    <td><form:input path="name" />
                    </td>
                    <td><form:errors path="name" cssClass="error" />
                    </td>
                </tr>
                <tr>
                    <td>Password :</td>
                    <td><form:input path="pass" />
                    </td>
                    <td><form:errors path="pass" cssClass="error" />
                    </td>
                </tr>
                <tr>
                    <td><input type="submit" value="Login" />
                    </td>

                </tr>
            </table>
        </form:form>
        <br>   <a href="<c:url value="register.htm"/>">Register account</a>
        </br>
    </body>
</html>